package com.star.mentor.dto;

import cn.hutool.core.collection.CollUtil;
import com.star.mentor.entity.Evaluation;
import com.star.mentor.entity.EvaluationItem;
import com.star.mentor.entity.EvaluationLog;
import com.star.mentor.enums.EvaluationItemType;
import com.star.mentor.enums.EvaluationLogType;
import com.star.mentor.struct.EvaluationStruct;
import javafx.util.Pair;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.*;
import java.util.function.BiFunction;
import java.util.function.Function;
import java.util.stream.Collectors;

/**
 * 评估规则更新
 *
 * @author yangzj
 */
@Getter
@Setter
@Accessors(chain = true)
public class EvaluationUpdateDTO {

    /**
     * id
     */
    @NotNull
    private Long id;

    /**
     * 评估规则名称
     */
    @NotBlank
    @Size(max = 50)
    private String name;

    /**
     * 评估图标
     */
    @NotBlank
    @Size(max = 255)
    private String icon;

    /**
     * 是否多人评估（0否 1是）
     */
    @NotNull
    private Boolean isMultiple;

    /**
     * 备注
     */
    private String remark;

    /**
     * 项目列表
     */
    private List<EvaluationItemUpdateDTO> items;

}
